/**
 * 小程序配置文件
 */
//===小程序AppId
//  第三方平台 wx2d8dc3700fb25fcc
// 测试（梦维云T） wx7f79c3b813ab4a6f
//  梦维云       wx975b09a3170e426f
//  骏华       wx8c6b91d88a30fed4
//  象屿       wx40a34d889f7348e6
//  外滩天序    wxe323ef6f2ff18ce6
//  华煦中央府  wx22161bd44534d399
//  Talk拓客    wx184cd9cdf693fbcf

const selectIdx = 3
const domainS = ['127.0.0.1:81', 'etalk-test.fzzkzh.com', 'etalk.fzzkzh.com', '192.168.0.181:81']
const threeUrlS = ["http:192.168.0.182:5173","https://scrm-app.fzzkzh.com","https://scrm-app.fzzkzh.com", "https://dev.solrcn.com"]

const secureS = [0, 1, 1, 0]
const domain = domainS[selectIdx];
const secure = secureS[selectIdx];
const imSdkAppID = 1400519884

const baseUrlS = [`http://${domain}`,`https://${domain}`]
const wsBaseUrlS = [`ws://${domain}`,`wss://${domain}`]
const baseUrl = baseUrlS[secure];
const wsBaseUrl = 'wss://talkyi.fzzkzh.com';  //wsBaseUrlS[secure];
const threeDomain = threeUrlS[selectIdx]


const appId = "__UNI__FAED04E";


const apiVersion = "v1";

module.exports = {
	//--广告类型定义，后台编号统一
	baseUrl: baseUrl,
	tiktokClientKeyApp: "awtigge4gawtddjl", //awtigge4gawtddjl 拉起拍摄器
 	tiktokClientKeyWeb: "awajgvfds51v06mn", //
	
	appAgreementUserUrl: `${baseUrl}/api/wxappAgreement/nologin/app/user`,
	appAgreementPrivacyUrl: `${baseUrl}/api/wxappAgreement/nologin/app/privacy `,
	
	//--sass部署的产品ID
	productId: 'shop',
    appId: appId,
    imSdkAppID: imSdkAppID,
    ListType : {

    },
	service: {
		domain:			domain,					//--服务器地址
		threeDomain: 	threeDomain,			//--第三方服务器
		imgUrl:			'https://etalk.obs.cn-south-1.myhuaweicloud.com/',	//--图片地址
		soundUrl:		'/static/url/',	//--声音地址
        //==websocket
        roomWebSocketUrl:           `${wsBaseUrl}/msg/wx`,

        getUserListByIdsUrl:        `${baseUrl}/api/user/users`,

		redirectUriTiktokAuth:		`${baseUrl}/api/douyin/auth`,
			
        //==登录
		loginUrl: 		            `${baseUrl}/api/user/getToken`,
		loginAppUrl: 		        `${baseUrl}/api/app/login/uniform`,		//一键登录
		loginPhoneUrl: 		        `${baseUrl}/api/app/login/phone`,		//手机号验证码登录
		getLoginAuthCodeUrl: 		`${baseUrl}/api/app/login/authCode`,	//获取登录验证码
		
		registerPhoneUrl: 		     `${baseUrl}/api/app/login/register`,		//手机号验证码登录
		
		
		deleteAccountUrl: 		     `${baseUrl}/api/salesman`,
		
		getSceneInfoUrl:            `${baseUrl}/api/wechat/scene`,
        //查询是否有某中权限
        interfacePermitUrl:        `${baseUrl}/api/salesman/hasPermit`,
        //=== 用户信息授权
        authPhoneUrl:               `${baseUrl}/api/user/authorizedPhone`,
        authUserInfoUrl:            `${baseUrl}/api/user/authorizedInfo`,
        authLocationUrl:            `${baseUrl}/api/user/authorizedLocation`,

        //=== 更新用户信息
        updateUserInfoUrl:          `${baseUrl}/api/user/edit`,
        //=== 获取用户信息
        getUserInfoUrl:             `${baseUrl}/api/user`,
        uploadAvatarUrl:            `${baseUrl}/api/user/avatar`,



        //=== 更新微信号和签名
        updateWechatCodeUrl:         `${baseUrl}/api/user/wechat/edit`,
        updatePersonSignatureUrl:    `${baseUrl}/api/user/personSignature/edit`,

        bindOfficialAccountUrl:     `${baseUrl}/api/wechat/bindMp`,


        //===获取 IM 签名
        getImUserSignUrl:           `${baseUrl}/api/im/userSig`,
        getAudioUserSignUrl:        `${baseUrl}/api/im/audioSig`,
        //==用于统计分享
        createUserLogUrl:           `${baseUrl}/api/userLog`,
        updateUserLogUrl:           `${baseUrl}/api/userLog`,
		getDetailUserLogUrl:        `${baseUrl}/api/userLog`,

        //=======顾客信息接口==========
        //---顾客记录
        getAllCustomerLogListUrl:   `${baseUrl}/api/userLog/customerTrend`,
        getOneCustomerLogListUrl:   `${baseUrl}/api/userLog/user`,
        //--顾客列表和顾客详情
        getCustomerListUrl:         `${baseUrl}/api/customers`,
        getCustomerDetailUrl:       `${baseUrl}/api/user/detail`,
        markInvalidUrl:             `${baseUrl}/api/customers/invalid`,
        //--顾客跟进
        getFollowLogListUrl:        `${baseUrl}/api/followLogs`,
        deleteFollowLogUrl:         `${baseUrl}/api/followLogs`,
        addFollowLogUrl:            `${baseUrl}/api/followLogs`,
        uploadFollowLogImageUrl:    `${baseUrl}/api/followLogs/upload`,

        //--顾客属性
        getUserPropsUrl:             `${baseUrl}/api/user/user/props`,
        updateUserPropsUrl:          `${baseUrl}/api/user/user/props`,

        //--顾客统计数据
        getCustomerAnalysisDataUrl: `${baseUrl}/api/customers/analysis`,
        //--备注顾客信息
        updateCustomerNameUrl:      `${baseUrl}/api/customers/remarkName/edit`,
        updateCustomerIntentionUrl: `${baseUrl}/api/customers/intention`,

        getCustomerByPhoneUrl:      `${baseUrl}/api/customers/customer/info`,
        publicCustomersUrl:      `${baseUrl}/api/customers/customer/public`,

        bindCustomerByIdUrl:      `${baseUrl}/api/customers/customer/bind`,
        auditingChannelDataUrl:     `${baseUrl}/api/customers/customer/channelSignups`,
        listSignupByChannelUrl:     `${baseUrl}/api/customers/customer/channel/channelSignups`,
        auditChannelDataUrl:     `${baseUrl}/api/customers/customer/channelSignup`,
        transferSalesmanUrl:     `${baseUrl}/api/customers/customer/rebind`,
        //=======销售信息 接口==========
        getSalesmanListUrl:         `${baseUrl}/api/salesman`,
        bindSalesmanUrl:            `${baseUrl}/api/salesman/bind`,
        getSalesmanDetailUrl:       `${baseUrl}/api/salesman/nologin`,
        updateSalesmanWechatQrcodeUrl: `${baseUrl}/api/salesman/wechatQrcode`,
        getSalesmanTeamDetailUrl:   `${baseUrl}/api/salesman/detailOfTeam`,
        statTodoListUrl:            `${baseUrl}/api/salesman/statTodoList`,
        customerRankUrl:            `${baseUrl}/api/salesman/customers/rank`,

        //=======文章接口==========
		getArticleListUrl:              `${baseUrl}/api/articles`,
		getArticleDetailUrl:            `${baseUrl}/api/articles/nologin`,
		addArticleUrl:                  `${baseUrl}/api/articles`,
		importFromMpArticleUrl:         `${baseUrl}/api/articles/importFromMp`,
		deleteArticleUrl:               `${baseUrl}/api/articles`,
        getArticleQrcodeUrl:             `${baseUrl}/api/articles/qrcode`,
		// updateArticleUrl:               `${baseUrl}/api/app/articles`,
        //======活动接口======
        getActivityListUrl:             `${baseUrl}/api/activity/nologin/list`,
        getActivityDetailUrl:           `${baseUrl}/api/activity/nologin/detail`,
        getMyActivityListUrl:           `${baseUrl}/api/activity/myActivity`,
        attendActivityUrl:              `${baseUrl}/api/activity/attend`,
        getCurrentActivityAwardUrl:     `${baseUrl}/api/activity/myActivityAward`,
        getAllActivityAwardUrl:         `${baseUrl}/api/activity/myAward`,
        getActivityAwardInfoUrl:        `${baseUrl}/api/activity/getWinRecordInfo`,
        attendActivityLikeUrl:          `${baseUrl}/api/activity/thumbup`,
        redeemActivityLikeUrl:          `${baseUrl}/api/activity/redeem`,

        helpCutActivityUrl:             `${baseUrl}/api/activity/cut`,
        getActivityNoticeListUrl:       `${baseUrl}/api/activity/cut/attendMember`,
        getRedPacketUrl:                `${baseUrl}/api/activity/receiveCash/attendMember`,


		//===活动抢红包
		getRedpacketNeedShareUrl:      	`${baseUrl}/api/activity/receiveAfterForward`,
		getRedpacketListUrl:      	 	`${baseUrl}/api/activity/receiveLog`,
		openRedpacketUrl:      	 		`${baseUrl}/api/activity/openHongbao`,
		getRedpacketScrollMessagesUrl:  `${baseUrl}/api/activity/hongbao/scrollMessages`,
        getRedpacketActivityUrl:  		`${baseUrl}/api/activity/hongbao/`,
		
		getHasRedpacketUrl:  			`${baseUrl}/api/activity/hasHongbaoActivity`,
		getRedpacketConfigUrl:  		`${baseUrl}/api/activity/hongbaoConfig`,
		
		

        checkOffActivityUrl:             `${baseUrl}/api/activity/checkOff`,
        getCheckOutInfoUrl:             `${baseUrl}/api/activity/recordInfo`,



        getHomeActivityUrl:                `${baseUrl}/api/activity/indexActivity`, //推荐活动
        checkReferrerRoleUrl:                `${baseUrl}/api/customers/checkReferrerRole`, //是否是老业主
        attendHomeActivityUrl:             `${baseUrl}/api/customers/register`,     //加入推荐活动
        addCustomerHomeActivityUrl:        `${baseUrl}/api/customers/customer/add`, //添加报备人员
        allocateCustomersUrl:             `${baseUrl}/api/customers/customer/allocate`, //分配客户给置业顾问


        //project 配置借口
        getProjectMetaInfoUrl:           `${baseUrl}/api/projectMeta/nologin/metaInfo`,
        getProjectModalsUrl:             `${baseUrl}/api/projectMeta/nologin/projectModal`,
        getMultiProjectShareUrl:             `${baseUrl}/api/projectMeta/nologin/share`,
        //==project 项目信息接口
        getProjectInfoUrl:              `${baseUrl}/api/project/nologin/info`,
        getHouseTypeListUrl:            `${baseUrl}/api/project/houseType/list`,
        getHouseTypeDetailUrl:          `${baseUrl}/api/project/houseType/nologin/detail`,
        getProjectTrafficUrl:           `${baseUrl}/api/project/periphery/nologin/type`,
        getProjectVisitorsUrl:          `${baseUrl}/api/project/nologin/visitors`,
        getProjectMaterialsUrl:         `${baseUrl}/api/project/materials/settings`,
        listMaterialsUrl:               `${baseUrl}/api/materials/sandTable`,
		
		//导购笔记
		getProjectNotesUrl:             `${baseUrl}/api/project/notes`,
		getProjectNotesDetailUrl:       `${baseUrl}/api/project/note/nologin/detail`,

        getProjectAlbumsUrl:            `${baseUrl}/api/project/nologin/albums`,
        getProjectAlbumDetailUrl:       `${baseUrl}/api/project/album/nologin/images`,
        getProjectVideosUrl:            `${baseUrl}/api/project/videos`,
        getProjectVideoDetailUrl:       `${baseUrl}/api/project/video/nologin/items`,

		getProjectNewsUrl:       		`${baseUrl}/api/project/nologin/news`,
        getProjectNewDetailUrl:         `${baseUrl}/api/project/news/nologin/detail`,
		
		
		
		//导购笔记
		getNoteListUrl:             	`${baseUrl}/api/notes/page`,
		getNoteDetailUrl:       		`${baseUrl}/api/notes/detail`,
		getNoteCreateUrl:       		`${baseUrl}/api/notes/add`,
		getNoteUpateUrl:       			`${baseUrl}/api/notes/edit`,
		getNoteDeleteUrl:       		`${baseUrl}/api/notes/delete`,
		
		getNoteVisitDataUrl:       		`${baseUrl}/api/notes/visitData`,
		getNoteStatisticUrl:       		`${baseUrl}/api/notes/stat`,
		
		getNoteReserveUrl:       		`${baseUrl}/api/notes/reserve`,
		
        //===统计接口
        getUserStatisticUrl:            `${baseUrl}/api/statistic/visitTrend`,
        getUserStatisticHourUrl:        `${baseUrl}/api/statistic/visitTrendToday`,
        getUserRankStatisticUrl:        `${baseUrl}/api/statistic/visitTimesRanking`,

        getContentStatisticUrl:         `${baseUrl}/api/statistic/contentVisitTrend`,
        getContentDetailStatisticUrl:   `${baseUrl}/api/statistic/contentVisitDaily`,

        getShareStatisticUrl:           `${baseUrl}/api/statistic/shareTrend`,
        getShareDetailStatisticUrl:     `${baseUrl}/api/statistic/shareDaily`,
		
		
		getActivityStatisticUrl:     	`${baseUrl}/api/statistic/activityTrend`,
		getActivityRankStatisticUrl:    `${baseUrl}/api/statistic/activity/visitTimesRanking`,
		
        //===团队统计
        getTeamStatisticUrl:             `${baseUrl}/api/teamStatistic/treads`,
        getTeamSalesmanListStatisticUrl: `${baseUrl}/api/teamStatistic/salesmanList`,
        getTeamUserStatisticUrl:         `${baseUrl}/api/teamStatistic/visitTrend`,
        getTeamUserStatisticHourUrl:     `${baseUrl}/api/teamStatistic/visitTrendToday`,
        getTeamContentStatisticUrl:      `${baseUrl}/api/teamStatistic/contentVisitTrend`,
        getTeamShareStatisticUrl:        `${baseUrl}/api/teamStatistic/shareTrend`,
        getTeamSalesmanShareListUrl:     `${baseUrl}/api/userLog/shares/salesman`,



        //===公众号通知
        postMessageByWechatOfficialUrl:          `${baseUrl}/api/im/leaveComment`,


        //checkOffActivityUrl:            `${baseUrl}/api/app/activity/checkOff`,
        // getActivityEmployeeDetailUrl:   `${baseUrl}/api/app/activity/detail/employee`,
        // getActivityInfoSimpleUrl:       `${baseUrl}/api/app/activity/info/simple`,
        // getActivityQrCodeInfoUrl:       `${baseUrl}/api/app/activity/list/employee`,
        // postActivityLotteryUrl:         `${baseUrl}/api/app/activity/lottery`,
        // getActivityLotteryListUrl:      `${baseUrl}/api/app/activity/lottery/list`,




        getUserStatisUrl:               `${baseUrl}/api/app/users/statis`,

        getMembersUrl:                  `${baseUrl}/api/app/members`,

        getOssSignatureUrl:             `${baseUrl}/api/common/obs/signature`,




        getPosterListUrl:               `${baseUrl}/api/posters/enterprise/type`,
        getPosterUrl:                   `${baseUrl}/api/posters`,

        addPosterUrl:                   `${baseUrl}/api/app/posters`,
        updatePosterUrl:                `${baseUrl}/api/app/posters`,
        deletePosterUrl:                `${baseUrl}/api/app/posters`,


        getArticleForReadUrl:           `${baseUrl}/api/app/articles/detail`,
        getShopEmployeeInfoUrl:         `${baseUrl}/api/app/employees`,

        // getTaskListUrl:                    `${baseUrl}/api/app/tasks`,
        // getTaskInfoUrl:                    `${baseUrl}/api/app/tasks`,
        // getTaskDetailUrl:                  `${baseUrl}/api/app/tasks/detail`,
        //====支付
        unifiedOrder:                  `${baseUrl}/api/wechat/pay/unifiedOrder`,
		
		//===积分商城
		getMyPointsUrl:					`${baseUrl}/api/shop/points`,
		getMyPointsRecordUrl:			`${baseUrl}/api/shop/points/log`,
	
		getGoodsCategoryUrl:			`${baseUrl}/api/shop/category`,
		getGoodsListUrl:				`${baseUrl}/api/shop/goods`,
		getGoodsDetailUrl:				`${baseUrl}/api/shop/goods`,	
		
		getGoodsRedeemUrl:				`${baseUrl}/api/shop/redeem`,
		getGoodsRedeemRecordUrl:	    `${baseUrl}/api/shop/redeem/log`,
		getGoodsRedeemRecordDetailUrl:	`${baseUrl}/api/shop/redeem/log`,
		
		getPointsMallRuleUrl:			`${baseUrl}/api/shop/nologin/config/remark`,
		
		
		
		getTaskListUrl:	    			`${baseUrl}/api/shop/task`,
		
		
		getThreeLoginUrl:  				`${baseUrl}/api/customers/loginActivityPlat`,  
		
		
		getSignInQRcodeUrl:				`${baseUrl}/api/user/visitQrcode`, 
		getCustomerUpdatePhoneUrl:		`${baseUrl}/api/customers/updatePhone`, 
		updateChannelReportTimeUrl:		`${baseUrl}/api/customers/channel/fresh`, 
		
		
		getStatisticRecentUrl:			`${baseUrl}/api/statistic/recent`, 
		
		getCalculatorListUrl: 				`${baseUrl}/api/calCreditRecord/page`, 
		createCalculatorUrl: 			`${baseUrl}/api/calCreditRecord/add`, 
		getCalculatorDetailUrl: 			`${baseUrl}/api/calCreditRecord/detail`, 
		
		updateSalesmanCardUrl: 			`${baseUrl}/api/user/salesmanCard`, 
		
		
		// titok
		authTiktokUrl: 					`${baseUrl}/api/user/accessToken`, 
		
		getTiktokPermissionUrl: 	`${baseUrl}/api/douyinPermission/detail`, 
		editTiktokPermissionUrl: 		`${baseUrl}/api/douyinPermission/edit`,
		
		
		getTiktokVideoPageUrl: 			`${baseUrl}/api/statistic/dy/video/page`,
		getTiktokVideoStatUrl: 			`${baseUrl}/api/statistic/dy/video/stat`,
		getTiktokVideoSimpleStatUrl: 	`${baseUrl}/api/statistic/dy/video/simpleStat`,
		
		
		getSystemMessagePageUrl: 			`${baseUrl}/api/systemMessage/page`,
		setSystemMessageReadUrl: 			`${baseUrl}/api/systemMessage/changeReadStatus`,
		getSystemMessageUnreadNumUrl: 			`${baseUrl}/api/systemMessage/unread`,
		
    }
};
